package cn.fengzhilun.javase.day08;

import org.junit.Test;

public class TestRectangle {
	@Test
	public void test1() {
		Rectangle r1=new Rectangle(4,40);
		Rectangle r2=new Rectangle(3.8,35.9);
		System.out.println("输出r1的宽"+r1.getWidth());
		System.out.println("输出r2的宽"+r2.getWidth());
		System.out.println("输出r1的高"+r1.getHeight());
		System.out.println("输出r2的高"+r2.getHeight());
		System.out.println("输出r1的面积"+r1.getArea());
		System.out.println("输出r2的面积"+r2.getArea());
		System.out.println("输出r1的周长"+r1.getPerimeter());
		System.out.println("输出r2的周长"+r2.getPerimeter());
	}
}
